 <{extends file="<{$tempdir}>/public/wxsite.html"}>  
<{block name=extendcss}> 
<link rel="stylesheet"  href="<{$siteurl}>/templates/<{$tempdir}>/public/wxsite/css/shopshow.css">   
<link rel="stylesheet"  href="<{$siteurl}>/templates/<{$tempdir}>/public/wxsite/css/public1.css">   

<{/block}>
 <{block name=extendjs}>  
  <script src="<{$siteurl}>/templates/<{$tempdir}>/public/wxsite/js/wxshop.js"></script>  
<{/block}>
<{block name=sitetitle}><{$sitename}><{/block}>
<{block name=hearnav}>
<header style="position: fixed;display:block;" id=""><div class="return"></div><{$shopinfo['shopname']}></header>




<{/block}>
<{block name=myScrolljs}><script> 
		var myScroll;
function loaded() {
	myScroll = new iScroll('wrapper', {
		useTransform: false,
		onBeforeScrollStart: function (e) {
			var target = e.target;
			while (target.nodeType != 1) target = target.parentNode;

			if (target.tagName != 'SELECT' && target.tagName != 'INPUT' && target.tagName != 'TEXTAREA')
				e.preventDefault();
		}
	});
}
document.addEventListener('touchmove', function (e) { e.preventDefault(); }, false); 
document.addEventListener('DOMContentLoaded', function () { setTimeout(loaded, 200); }, false);
</script>
<{/block}>
<{block name=blockcontent}> 
<div id="wrapper" style="top:42px;">
<div  class="page-app">
<style>
.shopinfo{background:#f0f0f0; height:110px;}
.infocontent{ padding:12px;}
.shopcont{ widht:100%;}
.shopimg{ width:30%; float:left;}
.shopimg img{ border:none;width:100%; height:86px;}
.shoptetx{width:65%; float:right; overflow:hidden;}
.shopname{color:#333333; font-size:20px;font-weight:bold; font-family:微软雅黑;}
.yhuibuy{ height:52px;line-height:52px; background:#ffffff; border-bottom:1px solid #e1e1e1; position:relative;}
.buyorderyh{ position:absolute; top:9px; right:20px; height:35px;padding:0px 18px;line-height:35px; font-size:16px;font-weight:bold; background:#fe6634; border-radius:5px;color:#fff;}
.liwd30{ width:10%; text-align:center; font-size:16px; color:#323232;font-weight:bold; font-family:微软雅黑;}
</style>
	<div class="shopinfo">
		<div class="infocontent">
			<div class="shopcont">
				<div class="shopimg"><img src="<{$shopinfo['shoplogo']|default:$shoplogo}>" /></div>
				<div class="shoptetx">
					<p class="shopname"><{$shopinfo['shopname']}></p>
				</div>
			</div>
		</div>
	</div>
	<div class="yhuibuy">
		<div class="buyorderyh"  onclick="dolink('<{ofunc type=url link="/wxsite/huisubshow/id/<{$shopinfo['id']}>"}>');">
			优惠买单
		</div>
	</div>
	<div class="yhuibuy box_inline">
		<div class="liwd30">
			<img src="<{$siteurl}>/templates/<{$tempdir}>/public/wxsite/images/iconfont-dizhi.png" style="width:20px;margin-top:16px; " />
		</div>
		<div class="liwd30" style="width:80%; text-align:left;">
			<{$shopinfo['address']}>
		</div>
		<div class="liwd30">
			<img src="<{$siteurl}>/templates/<{$tempdir}>/public/wxsite/images/iconfont-arrow1.png" style="width:20px;margin-top:16px; " />

		</div>
	</div>
    <a href="tel:<{$shopinfo['phone']}>" >
<div class="yhuibuy box_inline">
			<div class="liwd30">
			<img src="<{$siteurl}>/templates/<{$tempdir}>/public/wxsite/images/iconfont-dianhua.png" style="width:20px;margin-top:16px; " />
		</div>
		<div class="liwd30" style="width:80%; text-align:left;">
			<{$shopinfo['phone']}>
		</div>
		<div class="liwd30">
			<img src="<{$siteurl}>/templates/<{$tempdir}>/public/wxsite/images/iconfont-arrow1.png" style="width:20px;margin-top:16px; " />

		</div>
	</div>
</a>
 </div>


  
  </div>
  <style>
  .user-menu i.icon-exit {
  background: url(<{$siteurl}>/templates/<{$tempdir}>/public/wxsite/css/images/menu-exit.png);
  background-size: 25px 25px;
  margin-top: 5px;
}
  </style>
<script>
$(function(){

	function isWeiXin(){
	    var ua = window.navigator.userAgent.toLowerCase();
	    if(ua.match(/MicroMessenger/i) == 'micromessenger'){
	        return true;
	    }else{
	        return false;
	    }
	}
	
 	var browser = {

			versions: function () {
			var u = navigator.userAgent, app = navigator.appVersion;

			return {
			trident: u.indexOf('Trident') > -1, //IE内核
			presto: u.indexOf('Presto') > -1, //opera内核
			webKit: u.indexOf('AppleWebKit') > -1, //苹果、谷歌内核
			gecko: u.indexOf('Gecko') > -1 && u.indexOf('KHTML') == -1, //火狐内核
			mobile: !!u.match(/AppleWebKit.*Mobile.*/) || !!u.match(/AppleWebKit/), //是否为移动终端
			ios: !!u.match(/(i[^;]+;(U;)? CPU.+Mac OS X)/), //ios终端
			android: u.indexOf('Android') > -1 || u.indexOf('Linux') > -1, //android终端或者uc浏览器
			iPhone: u.indexOf('iPhone') > -1 || u.indexOf('Mac') > -1, //是否为iPhone或者QQHD浏览器
			iPad: u.indexOf('iPad') > -1, //是否iPad
			webApp: u.indexOf('Safari') == -1 //是否web应该程序，没有头部与底部
			};
			} (),
			language: (navigator.browserLanguage || navigator.language).toLowerCase()
			}
			if (browser.versions.mobile ) {
			            

				            if(isWeiXin()){
								$("#icon-bangdmem").show();
								$("#icon-exit").hide();
					        }else{
							
								$("#icon-bangdmem").hide();
								$("#icon-exit").show();
								
							}
			         
			        }
				
})
</script>
 
<{/block}>